﻿<UserControl x:Class="TextAdventures.Quest.EditorControls.ScriptExpander"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:my="clr-namespace:TextAdventures.Quest.EditorControls"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Expander Name="ctlExpander" Expanded="ctlExpander_Expanded" HorizontalAlignment="Stretch" IsExpanded="True">
            <Expander.Header>
                <StackPanel Orientation="Horizontal">
                    <TextBlock Name="header" VerticalAlignment="Center">Script</TextBlock>
                    <Button Name="cmdDelete" Click="cmdDelete_Click" Margin="20,0,0,0" Padding="10,3,10,3">Remove</Button>
                </StackPanel>
            </Expander.Header>
            <my:ScriptEditorControl x:Name="ctlScript" HorizontalAlignment="Stretch"/>
        </Expander>
    </Grid>
</UserControl>
